package cn.tedu.myioc;
//测试自己写的IOC控制反转
public class TestMyIOC {
    public static void main(String[] args) throws Exception {
        MyIOC mine= new MyIOC();
        Object o1=mine.getBean("user");
        Object o2=mine.getBean("dept");
        Object o3=mine.getBean("order");
        System.out.println(o1);//cn.tedu.myioc.User@5caf905d
        System.out.println(o2);//cn.tedu.myioc.Dept@27716f4
        System.out.println(o3);//cn.tedu.myioc.Order@8efb846
    }
}
